package com.whmw.mybatisplusdemo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 陈秋雨
 * @since 2025/07/13 下午 5:03
 */
@Getter
@AllArgsConstructor
public enum StatusEnum {
    LOCK(1,"lock"),
    DISABLE(2,"disable");


    @EnumValue // 数据库中实际存储的值
    private final int value;

    @JsonValue // 序列化时返回给前端的值
    private final String desc;
}
